//
//  Remark.h
//  Guazi
//
//  Created by koolearn on 11-7-31.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Statement.h"
#import "User.h"


@interface Remark : NSObject {
    
    long long remarkId;
    long long userId;
    long long statusId;
    NSString* text;
    NSString* type;
    time_t createAt;
    NSString* source;
    
    User* user;
}


@property (nonatomic, assign) long long remarkId;
@property (nonatomic, assign) long long userId;
@property (nonatomic, assign) long long statusId;
@property (nonatomic, retain) NSString* text;
@property (nonatomic, retain) NSString* type;
@property (nonatomic, assign) time_t createAt;
@property (nonatomic, retain) NSString* source;
@property (nonatomic, retain) User* user;

- (id)initWithJsonDictionary:(NSDictionary*)dic statusId:(long long)statusId;
- (id) initWithStatement:(Statement*)stmt;
+ (NSMutableArray*) loadFromDB:(long long)statusId rows:(NSInteger)rows beforeTime:(time_t)time;

@end
